package com.neusoft.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.po.EmpPO;
import com.neusoft.po.LoginPO;
import com.neusoft.response.Result;
import com.neusoft.service.HomeService;
import com.neusoft.service.LoginService;
import com.neusoft.util.TokenUtil;

@CrossOrigin
@RestController
public class HomeHandler {
	@Autowired
	private HomeService sv;
	
	@PostMapping("/getss")
	public Integer sum1(@RequestBody Integer deptno) {
		System.out.println(deptno);
		return sv.getsum1(deptno);
	}
	@PostMapping("/gets")
	public Integer sum2(@RequestBody Integer deptno) {
		return sv.getsum2(deptno);
	}
}
